<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class TestController extends Controller
{
    //
    public function index(Request $request){

        if($request->isMethod('post')){
            dump('1');

            $request->session()->flash('one','one');
            dd($request->session()->all());
        }else{
            dump('2');
            return view('admin.admin.index');
        }
    }

    public function test(){
        return view('admin.test.add');
    }



}
